/*
 * $Id: IBaseDAO.java,v 1.3 2009/07/24 18:27:43 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface IBaseDAO extends Serializable{
	public List<?> findByProperty(String propertyName, Object value);

	public List<?> findByProperty(String propertyName, Object value,
			String orderBy);

	public List<?> findByProperties(Map<String, Object> whereClause);

	public Object findObjectByID(String propertyName, Object value);

	public void deleteByProperty(String propertyName, Object value);

	public void deleteByProperty(String propertyName, Object value,
			String tableName);

	public void save(Object pojo);

	public void deleteByID(Object pojo);

	public void refreshCache();

	public void refresh(Object pojo);
}
